add_circt_dialect_library(CIRCTFIRRTLTransforms
  AddSeqMemPorts.cpp
  BlackBoxReader.cpp
  CheckCombCycles.cpp
  CheckCombLoops.cpp
  CreateSiFiveMetadata.cpp
  Dedup.cpp
  DropName.cpp
  EmitOMIR.cpp
  ExpandWhens.cpp
  ExtractInstances.cpp
  FlattenMemory.cpp
  GrandCentral.cpp
  IMConstProp.cpp
  IMDeadCodeElim.cpp
  InferResets.cpp
  InferReadWrite.cpp
  InferWidths.cpp
  InjectDUTHierarchy.cpp
  InnerSymbolDCE.cpp
  LowerAnnotations.cpp
  LowerCHIRRTL.cpp
  LowerIntrinsics.cpp
  LowerMemory.cpp
  LowerTypes.cpp
  LowerXMR.cpp
  MergeConnections.cpp
  MemToRegOfVec.cpp
  ModuleInliner.cpp
  PrefixModules.cpp
  PrintInstanceGraph.cpp
  PrintNLATable.cpp
  RandomizeRegisterInit.cpp
  ResolveTraces.cpp
  RemoveUnusedPorts.cpp
  SFCCompat.cpp
  WireDFT.cpp

  DEPENDS
  CIRCTFIRRTLTransformsIncGen

  LINK_LIBS PUBLIC
  CIRCTFIRRTL
  CIRCTHW
  CIRCTSV
  CIRCTSupport
  MLIRIR
  MLIRPass
  MLIRTransformUtils
)
